﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrator/EHTAdmin.Master" AutoEventWireup="true" CodeBehind="EHTCustomers.aspx.cs" Inherits="EHTWebsiteProject.Administrator.EHTCustomers" %>
<%@ Register src="Controls/PaggingControl.ascx" tagname="PaggingControl" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MenuModulContent" runat="server">
<div class="MenuSub-Left" >
        <table>
            <tr>
                <td> <img alt="" src="../images/EHTgiaodien/icon-48-category.png" width="48px" height="48px" /></td>               
                <td><asp:Label ID="lbCustomer" runat="server" Text="Quản lý đối tác " ></asp:Label></td>                
            </tr>
        </table>           
    </div>
    <div class="MenuSub-Right" align="right">
        <table style="height:60px">
            <tr>                               
                <td valign="middle">
                    <div class="add-edit-del">  
                            <asp:ImageButton ID="ImaTat" 
                                ImageUrl="~/images/EHTgiaodien/icon-32-unpublish.png" runat="server" 
                                width="32px" height="32px" class="imagboder" onclick="ImaTat_Click"  />                     
                            <br />
                            <asp:Label ID="lbTat" runat="server" Text="Tắt"></asp:Label>                       
                    </div>
                </td>
                <td valign="middle">
                    <div class="add-edit-del">   
                            <asp:ImageButton ID="ImgBat" 
                                ImageUrl="~/images/EHTgiaodien/icon-32-publish.png" runat="server" width="32px" 
                                height="32px" class="imagboder" onclick="ImgBat_Click"  />                     
                            <br />                                                 
                            <asp:Label ID="lbBat" runat="server" Text="Bật"></asp:Label>                       
                    </div>
                </td>                                             
                <td valign="middle">
                    <div class="add-edit-del">
                         <asp:ImageButton ID="ImgDel" ImageUrl="~/images/EHTgiaodien/icon-32-delete.png" 
                                runat="server" width="32px" height="32px" CssClass="imagboder" 
                                OnClientClick="return confirm('Are you sure you want to delete?');" 
                             onclick="ImgDel_Click" />                                                     
                            <br />
                            <asp:Label ID="lbDel" runat="server" Text="Xóa"></asp:Label>       
                    </div>
                </td>

               
                <td valign="middle">
                    <div class="add-edit-del">
                        <a href="EHTCustomerUI.aspx">
                            <img alt="" src="../images/EHTgiaodien/icon-32-new.png" width="32px" height="32px" class="imagboder" /><br />
                            <asp:Label ID="lbAddNew" runat="server" Text="Thêm mới"></asp:Label>
                        </a>
                    </div>
                </td>

                 <td valign="middle">
                    <div class="add-edit-del">
                        <a href="#">
                            <img alt="" src="../images/EHTgiaodien/icon-32-help.png" width="32px" height="32px" class="imagboder" /><br />
                            <asp:Label ID="lbHelp" runat="server" Text="Trợ giúp"></asp:Label>
                        </a>
                    </div>
                </td>                
            </tr>
        </table>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">
  <div style="padding-top:10px;">
      <asp:Panel ID="plContactVN" runat="server">
        <asp:Repeater ID="rpContactVN" runat="server" 
              onitemdatabound="rpContactVN_ItemDataBound" >                
        <HeaderTemplate>
            <table ID="table" border="0" cellpadding="0" cellspacing="0" >
                 <thead>
                    <tr>
                                     <th>
                                        <asp:CheckBox ID="ckAll" runat="server" AutoPostBack="true" OnCheckedChanged="CheckAllVN" />
                                    </th>                        
                                   
                                    <th>
                                        <asp:Label ID="lbID" runat="server" Text="STT"></asp:Label>
                                    </th>
                                    <th>
                                        <asp:Label ID="lbTen" runat="server" Text=" Tên"></asp:Label>                            
                                    </th>
                                     <th>
                                        <asp:Label ID="lbDienThoai" runat="server" Text=" Điện thoại"></asp:Label>                            
                                    </th>
                                    <th>
                                        <asp:Label ID="lbMota" runat="server" Text=" Địa chỉ "></asp:Label>                             
                                    </th>
                                     <th>
                                        <asp:Label ID="lbWeb" runat="server" Text=" Website "></asp:Label>                             
                                    </th>   
                                    <th>
                                        <asp:Label ID="lbTrangThai" runat="server" Text=" Trạng thái "></asp:Label>                             
                                    </th>      
                                    <th>
                                        <asp:Label ID="lbNgayLienHe" runat="server" Text=" Hình ảnh "></asp:Label>                             
                                    </th>                                                                                                                  
                    </tr>
                 </thead>
                 <tbody>            
        </HeaderTemplate>
        <ItemTemplate>
                 <tr>
                        <td>
                            <asp:CheckBox ID="ckMenu"  runat="server" />
                            <asp:Label ID="lbDelID" runat="server" Visible="false" Text='<%#Eval("CustomerID")%>'></asp:Label>
                        </td>
                        <td style="width:50px">
                            <%#Eval("IndexId") %>
                        </td>
                        <td style="width:200px">
                           <a href='EHTCustomerUI.aspx?CustomerID=<%#Eval("CustomerID") %>' class="linkedit">
                             <%#Eval("CustomerVN")%>
                           </a>
                        </td>
                        <td>
                            <%#Eval("Phone")%>
                        </td>
                        <td style="width:400px">
                           <%#Eval("AddressVN")%>
                        </td>  
                        <td style="width:200px">
                           <%#Eval("CustomerURL")%>
                        </td>  
                         <td>
                             <asp:Label ID="lbTrangThai" runat="server" Text='<%#Eval("Publish")%>' Visible="false"></asp:Label>
                            <asp:Image ID="ImagePublish" runat="server" />
                        </td> 
                        <td>
                             <a href='EHTCustomerUI.aspx?CustomerID=<%#Eval("CustomerID") %>' class="linkedit">
                                <img alt="" src='../ImageDatas/Customers/<%#Eval("CustomerIMG")%>' width="100px" height="60px" />                                             
                            </a>
                        </td>                        
                    </tr>
        </ItemTemplate>
        <FooterTemplate>
                </tbody>
             </table>
        </FooterTemplate>
    </asp:Repeater>
      </asp:Panel>
      <asp:Panel ID="plCOntactOther" runat="server">
        <asp:Repeater ID="rpContactOther" runat="server" 
              onitemdatabound="rpContactOther_ItemDataBound" >                      
        <HeaderTemplate>
            <table ID="table" border="0" cellpadding="0" cellspacing="0" >
                 <thead>
                    <tr>
                                      <th>
                                        <asp:CheckBox ID="ckAll1" runat="server" AutoPostBack="true" OnCheckedChanged="CheckAllOther" />
                                    </th>                        
                                   
                                    <th>
                                        <asp:Label ID="lbID" runat="server" Text="Number Order"></asp:Label>
                                    </th>
                                    <th>
                                        <asp:Label ID="lbTen" runat="server" Text=" Name"></asp:Label>                            
                                    </th>
                                     <th>
                                        <asp:Label ID="lbDienThoai" runat="server" Text=" Phone"></asp:Label>                            
                                    </th>
                                    <th>
                                        <asp:Label ID="lbMota" runat="server" Text=" Address "></asp:Label>                             
                                    </th>
                                    <th>
                                        <asp:Label ID="lbWeb" runat="server" Text=" Website "></asp:Label>                             
                                    </th> 
                                    <th>
                                        <asp:Label ID="lbTrangThai" runat="server" Text=" Status "></asp:Label>                             
                                    </th>      
                                    <th>
                                        <asp:Label ID="lbNgayLienHe" runat="server" Text=" Image "></asp:Label>                             
                                    </th>                                                                                                                               
                    </tr>
                 </thead>
                 <tbody>            
        </HeaderTemplate>
        <ItemTemplate>
                 <tr>
                        <td>
                            <asp:CheckBox ID="ckMenu"  runat="server" />
                            <asp:Label ID="lbDelID" runat="server" Visible="false" Text='<%#Eval("CustomerID")%>'></asp:Label>
                        </td>
                        <td style="width:50px">
                            <%#Eval("IndexId") %>
                        </td>
                        <td style="width:200px">
                           <a href='EHTCustomerUI.aspx?CustomerID=<%#Eval("CustomerID") %>' class="linkedit">
                             <%#Eval("CustomerOrder")%>
                           </a>
                        </td>
                        <td>
                            <%#Eval("Phone")%>
                        </td>
                        <td style="width:400px">
                           <%#Eval("AddressOther")%>
                        </td>  
                        <td style="width:200px">
                           <%#Eval("CustomerURL")%>
                        </td>  
                         <td>
                             <asp:Label ID="lbTrangThai" runat="server" Text='<%#Eval("Publish")%>' Visible="false"></asp:Label>
                             <asp:Image ID="ImagePublish" runat="server" />
                        </td> 
                        <td>
                            <a href='EHTCustomerUI.aspx?CustomerID=<%#Eval("CustomerID") %>' class="linkedit">
                                <img alt="" src='../ImageDatas/Customers/<%#Eval("CustomerIMG")%>' width="100px" height="60px" />                                             
                            </a>
                        </td>                         
                    </tr>
        </ItemTemplate>
        <FooterTemplate>
                </tbody>
             </table>
        </FooterTemplate>
    </asp:Repeater>
      </asp:Panel>        
    </div>
    <div style="padding:10px; text-align:center">
         <uc1:paggingcontrol ID="PaggingControl1" PageSize="30" runat="server" />
    </div>
</asp:Content>
